/* import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
 */
import { FormPath } from '@formily/core';
const target = { array: [] };
//占路径
FormPath.setIn(target, 'a.b.c', 'dotValue');
console.log(FormPath.getIn(target, 'a.b.c'));

//下标
FormPath.setIn(target, 'array.0.d', 'dValue');
console.log(FormPath.getIn(target, 'array.0.d'));

//解构在前后端 数据结构不一致的情况下特别方便
FormPath.setIn(target, 'parent.[f,g]', [1, 2]);
console.log(target);
